package com.yanqu.road.server.game.service.cmd;


import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.server.protocol.Protocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = Protocol.S_CROSS_SERVICE_MESSAGE_RESP, desc = "同步消息的请求返回")
public class CrossServiceMessageRespCmd implements Command {
    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage yanQuMessage) throws Exception {
        GamePlayerMgr.getSyncMessageCaller().receiveMsgHandler(yanQuMessage);
    }
}
